import request from '@/utils/request'



//商品一级分类接口
///admin/product/getCategory1
export const reqCategory1List = () => request({url:`/admin/product/getCategory1`,method:'get'})

//商品二级分类接口
///admin/product/getCategory2/{category1Id}
export const reqCategory2List = (category1Id) => request({url:`/admin/product/getCategory2/${category1Id}`,method:'get'})

//商品三级分类接口
///admin/product/getCategory3/{category2Id}
export const reqCategory3List = (category2Id) => request({url:`/admin/product/getCategory3/${category2Id}`,method:'get'})

//商品列表接口
///admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
export const reqArrList = (category1Id,category2Id,category3Id) => request({url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,method:'get'})

//添加属性值接口
///admin/product/saveAttrInfo
export const reqAddAttr = (data)=>request({url:'/admin/product/saveAttrInfo',method:'post',data})
//删除属性接口
///admin/product/deleteAttr/{attrId}
export const reqDelAttr = (attrTd) => request({url:`/admin/product/deleteAttr/${attrTd}`,method:'delete'})